    //加载百度地图底图
    var map = new BMap.Map('allmap',{minZoom:6,maxZoom:19,enableMapClick:false});
    map.centerAndZoom(new BMap.Point(106.530635013,29.5446061089),6);
    window.map = map;
    var pointOverlays;
    var heatOverlays;
    var allMapData = [];//地图数据
    var inputData = {};//参数
    var mapDataStatus ;//返回状态
    var searchFlag = false;//地图搜索状态
    var aroundAccountUrl = "/developer/developerMapData";//地图数据接口
    var accountSearchUrl = "/developer/developerData";
    var accountCommunityUrl = "/developer/developerSearchData";
    var zoneNumber = $("#city").val();
    //渲染地图
    initMap(aroundAccountUrl,{city:zoneNumber,level:"1"});

    //注册地图层级监听
    map.addEventListener("zoomend",scrollFunc);
    //请求接口
    function RequestData (url,paramsData) {
        $.ajax({
            type: "post",
            url: url,
            data:paramsData,
            async: false,
            success:function (data) {
                allMapData = data.result.mapDataList;
                mapDataStatus = data.result.mapDataStatus;
            }
        })
    }
    //监听地图层级事件
    function scrollFunc (e) {
        e=e || window.event;
        var zoom = map.getZoom();
        var zoneNumber = $("#city").val();
        var inputData = {city:zoneNumber};
        if(zoom>=13){
            map.setMinZoom(13);
            map.enableScrollWheelZoom();
        }
        if(zoom>=13 && zoom<16 && scrollFlag){
            map.clearOverlays();
            inputData.level=3;
            RequestData (aroundAccountUrl,inputData);
            createDeveloperDistrict(allMapData);
        }else if(zoom>=16 && zoom<=19 && scrollFlag){
            map.clearOverlays();
            RequestData (accountSearchUrl,inputData);
            createDeveloper(allMapData);
        }
    }





